package com.zq.behavior.interpreter;

import java.util.HashMap;
import java.util.Map;

// 包含一系列操作
public final class Context {
    private Map<Variable, Boolean> map = new HashMap<>();

    public  void assign(Variable var, boolean val) {
        map.put(var, val);
    }

    public boolean lookup(Variable var) {
        return map.get(var);
    }
}
